package com.ossjk.oa.advisory.service.impl;

import com.ossjk.oa.advisory.entity.Discipline;
import com.ossjk.oa.advisory.mapper.DisciplineMapper;
import com.ossjk.oa.advisory.service.IDisciplineService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 专业 服务实现类
 * </p>
 *
 * @author Jason
 * @since 2019-02-10
 */
@Service
public class DisciplineServiceImpl extends ServiceImpl<DisciplineMapper, Discipline> implements IDisciplineService {
	@Override
	public Page selectVoPage(Page page, Wrapper wrapper) {
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoPage(page, wrapper));
		return page;
	}
}
